import request from "../utils/request";
const api_name = "/comment";
export default {
    getPagedList(page, limit, courseId) {
        return request({
            url: `${api_name}/list/${page}/${limit}/${courseId}`,
            method: "get",
        });
    },

    //添加评论
    addComment(comment) {
        return request({
            url: `${api_name}`,
            method: "post",
            data: comment,
        });
    },
};